<!DOCTYPE html>
<html>
<head>
    <title>请求地址地图</title>
    <meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="stylesheet" href="/css/bootstrap.min.css">
	<link rel="stylesheet" href="/css/font-awesome.min.css">
	<link rel="stylesheet" href="/plugins/jqgrid/ui.jqgrid-bootstrap.css">
	<link rel="stylesheet" href="/plugins/ztree/css/metroStyle/metroStyle.css">
	<link rel="stylesheet" href="/css/main.css">
	<script type="text/javascript" charset="utf-8" src="/libs/jquery.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/plugins/layer/layer.js"></script>
	<script type="text/javascript" charset="utf-8" src="/libs/bootstrap.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/libs/vue.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/js/session.js"></script>
	<script type="text/javascript" charset="utf-8" src="/plugins/jqgrid/grid.locale-cn.js"></script>
	<script type="text/javascript" charset="utf-8" src="/plugins/jqgrid/jquery.jqGrid.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/plugins/ztree/jquery.ztree.all.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="/js/common.js"></script>
</head>
<body>
<div id="root-app" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <a class="btn btn-primary" v-if="hasPermission('tb:test:save')" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a class="btn btn-primary" v-if="hasPermission('tb:test:update')" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a class="btn btn-primary" v-if="hasPermission('tb:test:delete')" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">所在类</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.clazz" placeholder="所在类"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">类说明</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.clazzExplain" placeholder="类说明"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">方法名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.method" placeholder="方法名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">方法说明</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.methodExplain" placeholder="方法说明"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">请求方式</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.requestMethod" placeholder="请求方式"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">响应方式</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.resType" placeholder="响应方式"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">请求路径</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.pathUrl" placeholder="请求路径"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">限制用户</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.forUsers" placeholder="限制用户"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">限制角色</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.forRoles" placeholder="限制角色"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所需权限</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.permissions" placeholder="所需权限"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">开发者</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.author" placeholder="开发者"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建者</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.createBy" placeholder="创建者"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.createDate" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新者</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.updateBy" placeholder="更新者"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.updateDate" placeholder="更新时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注信息</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.remarks" placeholder="备注信息"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">删除标记</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="test.delFlag" placeholder="删除标记"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="/js/modules/tb/test.js"></script>
</body>
</html>